﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HomeProfileReligionProcessEdit.ascx.cs" 
Inherits="Micronet.OpenWeb.OpenWeb.Admin.Views.Shared.OpenPersonality.HomeProfileReligionProcessEdit" %>
<owc:OwDetailsView ID="HomeProfileReligionProcessDV" runat="server" AutoGenerateRows="False" DataKeyNames="OpenHomeProfileReligionProcessID"
    DataSourceID="HomeProfileReligionProcessOds" OwNotificationID="" >
    <Fields>
        <asp:TemplateField>
            <InsertItemTemplate>                
                <fieldset>
                    <legend><span>
                        <%--<asp:Localize ID="Localize7" Text="<%$ OwR:InfoLabel %>" runat="server"></asp:Localize>--%>
                        <owc:OwR ID="InfoOwR" OwText="InfoLabel" OwSuffix=":" runat="server" ></owc:OwR>
                    </span></legend>
                    <div>
                        <table width="100%">                            
                            <tr>
                                <td class="leftcolumn">
                                    <%--<asp:Localize ID="txtCompany" Text="<%$ OwR:CompanyLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR ID="HomeProfileDetailOwR" runat="Server" OwText="HomeProfileDetailLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    
                                    <owc:OwComboBox EmptyMessage='<%$ OwR:PleaseSelect%>'  SkinID="OwComboBox" ID="OwOpenHomeProfileDetailCbb" runat="server" DataSourceID="OwOpenHomeProfileDetailOds" 
                                        DataTextField="Title" DataValueField="OpenHomeProfileDetailID" AppendDataBoundItems="True" 
                                        SelectedValue='<%# Bind("OpenHomeProfileDetailID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwOpenHomeProfileDetailOds" runat="server" 
                                        OldValuesParameterFormatString="original_{0}" OwBLLClassName="" 
                                        OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwOpenHomeProfileDetailsBLL">
                                        <SelectParameters>
                                            <asp:Parameter DefaultValue="false" Name="isDeleted" Type="Boolean" />
                                            <asp:Parameter Name="languageCode" Type="String" />
                                            <asp:Parameter Name="openHomeProfileID" Type="Int64" />
                                            <asp:Parameter Name="firstNameID" Type="Int64" />
                                            <asp:Parameter Name="lastNameID" Type="Int64" />
                                            <asp:Parameter Name="isDefault" Type="Boolean" />
                                            <asp:Parameter Name="twelveYearCycleOfAnimalID" Type="Int32" />
                                            <asp:Parameter Name="fiveElementID" Type="Int32" />
                                            <asp:Parameter Name="hometownContinentID" Type="Int64" />
                                            <asp:Parameter Name="hometownCountryID" Type="Int64" />
                                            <asp:Parameter Name="hometownProvinceID" Type="Int64" />
                                            <asp:Parameter Name="hometownDistrictID" Type="Int64" />
                                            <asp:Parameter Name="hometownWardID" Type="Int64" />
                                            <asp:Parameter Name="zodiacID" Type="Int64" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                    
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <%--<asp:Localize ID="Localize4" Text="<%$ OwR:JobPositionLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR ID="ReligionOwR" runat="server" OwText="ReligionLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                
                                    <owc:OwComboBox EmptyMessage='<%$ OwR:PleaseSelect%>'  SkinID="OwComboBox" ID="OwReligionCbb" runat="server" DataSourceID="OwReligionOds" 
                                        DataTextField="Name" DataValueField="ReligionID" 
                                        SelectedValue='<%# Bind("ReligionID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwReligionOds" runat="server" 
                                        OldValuesParameterFormatString="original_{0}" OwBLLClassName="" 
                                        OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwReligionsBLL">
                                        <SelectParameters>
                                            <asp:Parameter Name="parentID" Type="Int64" />
                                            <asp:Parameter Name="languageCode" Type="String" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                </td>   
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <%--<asp:Localize ID="Localize9" Text="<%$ OwR:JobTitleLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR ID="StartDateOwR" runat="server" OwText="StartDateLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                        ID="dtStartDate" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("StartDate") %>'
                                        MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow: DateTime.Now %>'
                                        OwUsedForEdit="False">
                                        <TimeView CellSpacing="-1">
                                        </TimeView>
                                        <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                        </Calendar>
                                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                    </owc:OwDateTimePicker>
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn" >
                                    <%--<asp:Localize ID="Localize11" Text="<%$ OwR:ContentLabel %>" runat="server"></asp:Localize>:--%>
                                    <owc:OwR ID="EndDateOwR" runat="server" OwText="EndDateLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                        ID="dtEndDate" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("EndDate") %>'
                                        MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow:OwPC.PCEx.DateTimeMax2 %>'
                                        OwUsedForEdit="False">
                                        <TimeView CellSpacing="-1">
                                        </TimeView>
                                        <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                        <Calendar ClientEvents-OnDateSelected="showNotification" UseRowHeadersAsSelectors="False"
                                            UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                        </Calendar>
                                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                    </owc:OwDateTimePicker>
                                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="dtStartDate"
                                        ControlToValidate="dtEndDate" ErrorMessage="<%$ OwR:EnableEndGreaterThanEnableBegin %>"
                                        Operator="GreaterThan" ValidationGroup="VDGroup"></asp:CompareValidator>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <fieldset >
                    <legend>
                        <owc:OwR ID="ExtInfoOwR" runat="server" OwText="ExtInfo" ></owc:OwR>
                    </legend>
                    <table>                        
                        <tr>
                            <td class="leftcolumn">
                                <owc:OwR ID="IsDeletedOwR" runat="server" OwText="IsDeletedLabel" OwPrefix=":"></owc:OwR>
                            </td>
                            <td>
                                <owc:OwCheckBox SkinID="OwCheckBox" ID="IsDeletedCbb" runat="server" Checked='<%# Bind("IsDeleted") %>' />
                            </td>
                        </tr>
                    </table>
                </fieldset>
                  <br />
                    <br />
                    <br />
            </InsertItemTemplate>
            <EditItemTemplate>                
                <fieldset>
                    <legend><span>
                        <%--<asp:Localize ID="Localize7" Text="<%$ OwR: InfoLabel %>" runat="server"></asp:Localize>--%>
                        <owc:OwR ID="InfoOwR" runat="server" OwText="InfoLabel" OwSuffix=":"></owc:OwR>
                    </span></legend>
                    <div>
                        <table width="100%">
                            <tr>
                                <td class="leftcolumn">
                                    <%--<asp:Localize ID="txtCompany" Text="<%$ OwR:CompanyLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR ID="HomeProfileDetailOwR" runat="Server" OwText="HomeProfileDetailLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    
                                    <owc:OwComboBox EmptyMessage='<%$ OwR:PleaseSelect%>'  SkinID="OwComboBox" ID="OwOpenHomeProfileDetailCbb" runat="server" DataSourceID="OwOpenHomeProfileDetailOds" 
                                        DataTextField="Title" DataValueField="OpenHomeProfileDetailID" AppendDataBoundItems="True" 
                                        SelectedValue='<%# Bind("OpenHomeProfileDetailID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwOpenHomeProfileDetailOds" runat="server" 
                                        OldValuesParameterFormatString="original_{0}" OwBLLClassName="" 
                                        OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwOpenHomeProfileDetailsBLL">
                                        <SelectParameters>
                                            <asp:Parameter DefaultValue="false" Name="isDeleted" Type="Boolean" />
                                            <asp:Parameter Name="languageCode" Type="String" />
                                            <asp:Parameter Name="openHomeProfileID" Type="Int64" />
                                            <asp:Parameter Name="firstNameID" Type="Int64" />
                                            <asp:Parameter Name="lastNameID" Type="Int64" />
                                            <asp:Parameter Name="isDefault" Type="Boolean" />
                                            <asp:Parameter Name="twelveYearCycleOfAnimalID" Type="Int32" />
                                            <asp:Parameter Name="fiveElementID" Type="Int32" />
                                            <asp:Parameter Name="hometownContinentID" Type="Int64" />
                                            <asp:Parameter Name="hometownCountryID" Type="Int64" />
                                            <asp:Parameter Name="hometownProvinceID" Type="Int64" />
                                            <asp:Parameter Name="hometownDistrictID" Type="Int64" />
                                            <asp:Parameter Name="hometownWardID" Type="Int64" />
                                            <asp:Parameter Name="zodiacID" Type="Int64" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                    
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <%--<asp:Localize ID="Localize4" Text="<%$ OwR:JobPositionLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR ID="ReligionOwR" runat="server" OwText="ReligionLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                
                                    <owc:OwComboBox EmptyMessage='<%$ OwR:PleaseSelect%>'  SkinID="OwComboBox" ID="OwReligionCbb" runat="server" DataSourceID="OwReligionOds" 
                                        DataTextField="Name" DataValueField="ReligionID" 
                                        SelectedValue='<%# Bind("ReligionID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwReligionOds" runat="server" 
                                        OldValuesParameterFormatString="original_{0}" OwBLLClassName="" 
                                        OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwReligionsBLL">
                                        <SelectParameters>
                                            <asp:Parameter Name="parentID" Type="Int64" />
                                            <asp:Parameter Name="languageCode" Type="String" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                </td>   
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <%--<asp:Localize ID="Localize9" Text="<%$ OwR:JobTitleLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR ID="StartDateOwR" runat="server" OwText="StartDateLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                        ID="dtStartDate" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("StartDate") %>'
                                        MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow: DateTime.Now %>'
                                        OwUsedForEdit="False">
                                        <TimeView CellSpacing="-1">
                                        </TimeView>
                                        <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                        </Calendar>
                                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                    </owc:OwDateTimePicker>
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn" >
                                    <%--<asp:Localize ID="Localize11" Text="<%$ OwR:ContentLabel %>" runat="server"></asp:Localize>:--%>
                                    <owc:OwR ID="EndDateOwR" runat="server" OwText="EndDateLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                        ID="dtEndDate" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("EndDate") %>'
                                        MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow:OwPC.PCEx.DateTimeMax2 %>'
                                        OwUsedForEdit="False">
                                        <TimeView CellSpacing="-1">
                                        </TimeView>
                                        <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                        <Calendar ClientEvents-OnDateSelected="showNotification" UseRowHeadersAsSelectors="False"
                                            UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                        </Calendar>
                                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                    </owc:OwDateTimePicker>
                                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="dtStartDate"
                                        ControlToValidate="dtEndDate" ErrorMessage="<%$ OwR:EnableEndGreaterThanEnableBegin %>"
                                        Operator="GreaterThan" ValidationGroup="VDGroup"></asp:CompareValidator>
                                </td>
                            </tr>
                            
                        </table>
                    </div>
                </fieldset>          
                <fieldset >
                    <legend>
                        <owc:OwR ID="ExtInfoOwR" runat="server" OwText="ExtInfo" ></owc:OwR>
                    </legend>
                    <table>                        
                        <tr>
                            <td class="leftcolumn">
                                <owc:OwR ID="IsDeletedOwR" runat="server" OwText="IsDeletedLabel" OwPrefix=":"></owc:OwR>
                            </td>
                            <td>
                                <owc:OwCheckBox SkinID="OwCheckBox" ID="IsDeletedCbb" runat="server" Checked='<%# Bind("IsDeleted") %>' />
                            </td>
                        </tr>
                    </table>
                </fieldset>
                    <br />
                    <br />
                    <br />
            </EditItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField ShowHeader="False">
            <EditItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <%--<asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" />--%>                
                        <owc:OwR runat="Server" ID="ActionOwR" OwText="Action" OwSuffix=":"></owc:OwR>
                    </legend>
                    
                    <owc:OwButton ID="EditUpdateThenCloseButton" runat="server" CommandName="Update"
                        Text='<%$OwR:Update %>'  OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;
                    <owc:OwConfirmButton ID="EditDeleteButton" runat="server" CausesValidation="True"
                        CommandName="Delete" Text="<%$OwR:Delete %>" SkinID="OwConfirmButton">
                    </owc:OwConfirmButton>
                    &nbsp;<owc:OwButton ID="EditCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </EditItemTemplate>
            <InsertItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <%--<asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" />--%>
                        <owc:OwR runat="Server" ID="ActionOwR" OwText="Action" OwSuffix=":"></owc:OwR>
                    </legend>
                    <owc:OwButton ID="InsertInsertButton" runat="server" CommandName="Insert" Text="<%$OwR:Insert %>"
                        OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;<owc:OwButton ID="InsertCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </InsertItemTemplate>
        </asp:TemplateField>
    </Fields>
</owc:OwDetailsView>

<owc:OwObjectDataSource ID="HomeProfileReligionProcessOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwOpenHomeProfileReligionProcessEntity"
    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
    SelectMethod="OwGetEntity" TypeName="Micronet.OpenWeb.Com.BLL.OwOpenHomeProfileReligionProcessBLL"
    UpdateMethod="OwUpdate">
    <SelectParameters>
           <asp:QueryStringParameter Name="OpenHomeProfileReligionProcessID" QueryStringField="<%$ Ow:OwConstants.QueryString.ID %>" />
    </SelectParameters>
</owc:OwObjectDataSource>